<template>
  <ul>
    <li>景点编号：{{ id }}</li>
    <li>景点名称：{{ name }}</li>
  </ul>
</template>

<script>
export default {
  name: "Detail",
  //接收 props 参数值
  props: ["id", "name"],
};
</script>